package com.business.service;

import java.util.List;
import org.apache.log4j.Logger;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.business.mapper.T_buildingMapper;
import com.business.domain.T_building;

@Service("t_buildingService")
@Transactional
public class T_buildingService{
	private static Logger log = Logger.getLogger(T_buildingService.class.getName());

	@Resource
    private T_buildingMapper t_buildingMapper;


	public int save(T_building obj){
		 return t_buildingMapper.save(obj);
	}

	public int update(T_building obj){
		return t_buildingMapper.update(obj);
	}

	public int delete(T_building obj){
		return t_buildingMapper.delete(obj);
	}

	public T_building findById(T_building obj){
		return t_buildingMapper.findById(obj);
	}

	public List findAll(T_building obj ){
		 return t_buildingMapper.findAll(obj);
	}

	public int findCountAll(T_building obj ){
		 return t_buildingMapper.findCountAll(obj);
	}
}
